home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: Using char array in functions
- Date: 29 Feb 1996 03:02:36 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb28200236@qcd.lanl.gov>
- References: <20FEB199609155775@sundog.caltech.edu> <4gqk5m$jno@aphex.direct.ca>
- <DnI1KG.EtF@eskimo.com>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: scs@eskimo.com's message of Wed, 28 Feb 1996 18:48:16 GMT
-
- In article <DnI1KG.EtF@eskimo.com>
- scs@eskimo.com (Steve Summit) writes:
-
- SS: array were not modifiable, either because it was declared const
-
- In the above sentence, "declared" should be replaced by "defined".
-
- SS: modifiable. It is hard to imagine a situation in which a
- SS: function was unable to modify what appeared to be an array
- SS: parameter for the reason that it was operating on a copy of the
- SS: array. (The only way I can imagine this failure mode is if the
- SS: array is wrapped up in a struct, and in that case the function
- SS: would no longer appear to be receiving an array parameter; it
- SS: would be receiving a struct parameter.)
-
- Actaully, bizarre things like a function receiving a non-lvalue array
- as a vararg parameter is possible: the function just cannot use it. (I
- am sorry I am bringing this up; it has no place in a beginner's text:
- your article was so nice that I wanted it to be absolutely correct as
- well ...)
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-